<?php

namespace Admin\Controller;
use Common\Controller\BackendController;

class RecomlistController extends BackendController
{
    public function benjin() {//年利率本金池
        $benjin=M('recom_benjin')->select();
        $this->assign('benjin',$benjin);
        $this->display();
    }
    public function fanli(){//返利总池
        $fanli=M('recom_fanlichi')->select();
        $this->assign('fanli',$fanli);
        $this->display();
    }
    public function fanlib(){//返利b池
        $fanli=M('recom_fanlichi')->where(array('leix_zijinchi'=>'B'))->select();
        $this->assign('fanli',$fanli);
        $this->display('fanli');
    }
    public function fanlia(){//返利a池
        $fanli=M('recom_fanlichi')->where(array('leix_zijinchi'=>'A'))->select();
        $this->assign('fanli',$fanli);
        $this->display('fanli');
    }      
    public function cengji(){//会员层级
        $cengji=M('recom')->select();
        $this->assign('cengji',$cengji);
        $this->display();
    }    
    public function account(){//账户记录
        $account=M('recom_user')->select();
        $this->assign('account',$account);
        $this->display();
    }
    public function accountlog(){//账户记录变动
        $log=M('recom_account_log')->select();
        $this->assign('logs',$log);
        $this->display();
    }
}